a11y: Improve child index helpers
authorMatthias Clasen <mclasen@redhat.com>
Sat, 24 Oct 2020 17:14:44 +0000 (13:14 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 24 Oct 2020 17:14:44 +0000 (13:14 -0400)
commit89a8c896633ecaf1080bf206a934f08bd477efaf
tree6dae9f7b5ec85ef4ef25ed7a3323f89e6bfd7cad
parente7b290debbca685220a0c96ddc8c5aab13138f4f
a11y: Improve child index helpers

We need to use gtk_accessible_should_present() whenever we
calculate accessible tree positions, to avoid inconsistencies.

While we are at it, make these helpers usable for finding
the position of accesibles that are now ignored, by not
looking at should_present for the object itself. This will
be relevant when we calculate the position of objects whose
HIDDEN state changes.
gtk/a11y/gtkatspicontext.c